# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-essay
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20210805
_commit=8882482d07f38b5713ea3f49cb593eed94e671dd
pkgrel=1
pkgdesc="Essential files for building up your Rime configuration (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://github.com/rime/rime-essay"
license=('LGPL')
source=("https://github.com/rime/rime-essay/archive/${_commit}/rime-essay-${_commit}.tar.gz")
sha512sums=('62169e26131ff8b60f86800b50328de1ef1e167e8cf81a9286599a7090babc315517671416a05a063fc2e2b17b26f6d861659800c357cc468dee783685a392f6')

package() {
  cd "rime-essay-${_commit}"
  install -Dm644 *.txt -t "${pkgdir}${MINGW_PREFIX}/share/rime-data/"
}
